package com.lecture.java8.geekbang.demo03;

import java.awt.*;

/**
 * 将图片上传到阿里云
 * @author 72879
 */
public class AliyunImageStore {

    public void createBucketIfNotExisting(String bucketName) {
        //创建bucket逻辑
    }

    public String generateAccessToken() {
        //根据accessKey 和 secretKey生成accessToke
        return "";
    }

    public String uploadToAliyun(Image image,String bucketName,String accessToken) {
        //上传图片到阿里云
        //返回图片存储的地址
        return "";
    }

    public Image downloadFormAliyun(String url,String accessToken) {
        //从阿里云下载图片
        return null;
    }

}
